﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="月原料采购计划录入.aspx.cs" Inherits="syc.Produce.月原料采购计划录入" %>

<html>
<head runat="server">
    <title></title>
   
    <style type="text/css">
        .style1
        {
            width: 169px;
        }
    </style>
   
</head>
<body>
<script type="text/javascript" language="javascript" src="/common.js"></script>
  <form id="form1" runat="server">
    <div id="wintop" class="wintop">生产处月原料采购及资金计划</div>
        <asp:Panel ID="Panel1" runat="server" CssClass="panel">        
            <span style="display:inline-block;width:160px;text-align:right;">
            
                年 度：<asp:DropDownList ID="NianDu" runat="server" Width="80px" 
                AutoPostBack="true" onselectedindexchanged="NianDu_SelectedIndexChanged">                    
                    <asp:ListItem>2009</asp:ListItem>
                    <asp:ListItem>2010</asp:ListItem>
                    <asp:ListItem>2011</asp:ListItem>
                    <asp:ListItem>2012</asp:ListItem>
                    <asp:ListItem>2013</asp:ListItem>
                    <asp:ListItem>2014</asp:ListItem>
                    <asp:ListItem>2015</asp:ListItem>
                </asp:DropDownList>
            </span>                  
             <asp:DropDownList ID="JiDu" runat="server" Width="80px" AutoPostBack="true" 
                Visible="false" >                    
                    <asp:ListItem Text="1季度" Value="13"></asp:ListItem>  
                    <asp:ListItem Text="2季度" Value="14"></asp:ListItem> 
                    <asp:ListItem Text="3季度" Value="15"></asp:ListItem> 
                    <asp:ListItem Text="4季度" Value="16"></asp:ListItem>           
             </asp:DropDownList>         
            月份：<asp:DropDownList ID="YueFen" runat="server" AutoPostBack="true" 
                onselectedindexchanged="YueFen_SelectedIndexChanged">
            <asp:ListItem>1</asp:ListItem>
            <asp:ListItem>2</asp:ListItem>
            <asp:ListItem>3</asp:ListItem>
            <asp:ListItem>4</asp:ListItem>
            <asp:ListItem>5</asp:ListItem>
            <asp:ListItem>6</asp:ListItem>
            <asp:ListItem>7</asp:ListItem>
            <asp:ListItem>8</asp:ListItem>
            <asp:ListItem>9</asp:ListItem>
            <asp:ListItem>10</asp:ListItem>
            <asp:ListItem>11</asp:ListItem>
            <asp:ListItem>12</asp:ListItem>
            </asp:DropDownList>      
            
            <asp:Button ID="Button_Save" runat="server" Text="保 存" CssClass="button" 
                UseSubmitBehavior="False" onclick="Button_Save_Click"  />
                
            <asp:Button ID="Button_Calc" runat="server" Text="计算金额" CssClass="button" 
                UseSubmitBehavior="False" onclick="Button_Calc_Click" />
            <asp:Button ID="Button_Export" runat="server" CssClass="button" 
                onclick="Button_Export_Click" Text="导出Excel" UseSubmitBehavior="false" />
            <input type="button" value="关 闭" class="button" onclick="parent.swin_close();" />

        </asp:Panel>
        
        <asp:Panel ID="Panel2" runat="server" CssClass="panel2">
            <asp:Label ID="Message" runat="server" Text="·准备就绪" CssClass="prompt"></asp:Label>
        </asp:Panel>





        <script>    putBillHead();</script>       

<table border=1 style="border-collapse: collapse;text-align:center; width:950; background-color:#FFFFE0" bordercolor=#000000 >
	<tr>
		<td height=60 colspan=11 style="font-size:26px;height: 22px;">供应处<%=季度 %>原料计划明细</td>
	</tr>
	<tr>
		<td width=120 height=22 rowspan="2" >原料名称</td>
		<td width=80 rowspan="2">钢 级</td>
		<td width=140 rowspan="2">规格(mm)</td>
		<td width=100 rowspan="2">螺纹形式</td>
		<td width=80 rowspan="2">单位</td>
		<td width=100 rowspan="2">计划购进量</td>
		<td colspan="2" >资金安排<br /></td>
    </tr>
	<tr>
	  <td >&nbsp;&nbsp; 单价(元)</td>
      <td >支付(元)</td>
  </tr>
	<tr>
		<td height=22>原料油管</td>
		<td>J55</td>
		<td>φ73.1×5.51</td>
		<td>NU</td>
		<td>吨</td>
		<td><%=油管计划量%></td>		
		<td><%=油管单价%></td>
        <td><%=油管金额%></td>
	</tr>
	<tr>
		<td height=22>原料套管</td>
		<td>J55</td>
		<td>φ139.7×7.72</td>
		<td>LC</td>
		<td>吨</td>
		<td><%=套管计划量%></td>		
		<td><%=套管单价%></td>
		<td><%=套管金额%></td>
	</tr>
	<tr>
		<td height=22>油管接箍</td>
		<td>J55</td>
		<td>φ88.9×12.5</td>
		<td>NU</td>
		<td>吨</td>
		<td><%=油管接箍计划量%></td>		
		<td><%=油管接箍单价%></td>
        <td><%=油管接箍金额%></td>
	</tr>
	<tr>
		<td height=22>套管接箍</td>
		<td>J55</td>
		<td>φ153.67×13.5</td>
		<td>LC</td>
		<td>吨</td>
		<td><%=套管接箍计划量 %></td>		
		<td><%=套管接箍单价%></td>
		<td><%=套管接箍金额%></td>
	</tr>	
	<tr>
		<td height=22>套管成品接箍</td>
		<td>J55</td>
		<td>5-1/2</td>
		<td>LC</td>
		<td>个</td>
		<td><%= 成品套管接箍计划量%></td>		
		<td><%= 成品套管接箍单价%></td>
        <td><%=成品套管接箍金额%></td>
	</tr>
	<tr>
		<td height=22>原料油管</td>
		<td>N80</td>
		<td>φ73.1×5.51</td>
		<td>NU</td>
		<td>吨</td>
		<td><%=油管N80计划量%></td>		
		<td><%=油管N80单价%></td>
        <td><%=油管N80金额%></td>
	</tr>	
	<tr>
		<td height=22>原料套管</td>
		<td>N80</td>
		<td>φ139.7×7.72</td>
		<td>LC</td>
		<td>吨</td>
		<td><%=套管N80计划量%></td>		
		<td><%=套管N80单价%></td>
		<td><%=套管N80金额%></td>
	</tr>	
	<tr>
		<td height=22>油管接箍</td>
		<td>N80</td>
		<td>φ88.9×12.5</td>
		<td>NU</td>
		<td>吨</td>
		<td><%=油管N80接箍计划量%></td>		
		<td><%=油管N80接箍单价%></td>
        <td><%=油管N80接箍金额%></td>
	</tr>	
	<tr>
		<td height=22>套管接箍</td>
		<td>N80</td>
		<td>φ153.67×13.5</td>
		<td>LC</td>
		<td>吨</td>
		<td><%=套管N80接箍计划量 %></td>		
		<td><%=套管N80接箍单价%></td>
		<td><%=套管N80接箍金额%></td>
	</tr>	
	<tr>
		<td height=22>套管成品接箍</td>
		<td>N80</td>
		<td>5-1/2</td>
		<td>LC</td>
		<td>个</td>
		<td><%=成品套管N80接箍计划量%></td>		
		<td><%=成品套管N80接箍单价%></td>
        <td><%=成品套管N80接箍金额%></td>
	</tr>	
</table>
<table border=1 style="border-collapse: collapse;text-align:center;width:950; background-color:#FFE4B5" bordercolor=#000000>
	<tr>
		<td height=60 colspan=11 style="font-size:26px;height: 22px;">生产处<%= this.YueFen.SelectedValue%>月份原料计划明细</td>
	</tr>
	<tr>
		<td width=120 height=22 rowspan="2" >原料名称</td>
		<td width=80 rowspan="2">钢 级</td>
		<td width=140 rowspan="2">规格(mm)</td>
		<td width=100 rowspan="2">螺纹形式</td>
		<td width=80 rowspan="2">单位</td>
		<td rowspan="2" class="style2">计划购进量</td>
		<td colspan="2" >资金安排<br /></td>
    </tr>
	<tr>
	  <td class="style1" >&nbsp;&nbsp; 单价(元)</td>
      <td >支付(元)</td>
  </tr>
	<tr>
		<td height=22>原料油管</td>
		<td>J55</td>
		<td>φ73.1×5.51</td>
		<td>NU</td>
		<td>吨</td>
		<td ><asp:TextBox ID="YouGuan" runat="server" CssClass="intxt1" Width="100" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false">0</asp:TextBox></td>		
		<td class="style1" ><asp:TextBox ID="YouGuanJiHuaZhiJinDanJia" runat="server" CssClass="intxt1" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"
                Width="98%" >0</asp:TextBox></td>
        <td><asp:Label ID="YouGuanJiHuaZhiJinJine"  runat="server"  Width="140px"></asp:Label></td>
	</tr>
	<tr>
		<td height=22>原料套管</td>
		<td>J55</td>
		<td>φ139.7×7.72</td>
		<td>LC</td>
		<td>吨</td>
		<td ><asp:TextBox ID="TaoGuan" runat="server" CssClass="intxt1" Width="100" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false">0</asp:TextBox></td>		
		<td class="style1" ><asp:TextBox ID="TaoGuanJiHuaZhiJinDanJia" runat="server" CssClass="intxt1" 
                Width="98%"
                onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false">0</asp:TextBox></td>
		<td><asp:Label ID="TaoGuanJiHuaZhiJinJine"   runat="server"  Width="140px"></asp:Label></td>
	</tr>
	<tr>
		<td height=22>油管接箍</td>
		<td>J55</td>
		<td>φ88.9×12.5</td>
		<td>NU</td>
		<td>吨</td>
		<td ><asp:TextBox ID="YouGuanJieGu" runat="server" CssClass="intxt1" Width="100" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false">0</asp:TextBox></td>		
		<td class="style1" ><asp:TextBox ID="YouGuanJieGuJiHuaZhiJinDanJia" runat="server" 
                CssClass="intxt1" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"
                Width="98%" >0</asp:TextBox></td>
        <td><asp:Label ID="YouGuanJieGuJiHuaZhiJinJine"  runat="server"  Width="140px"></asp:Label></td>
	</tr>
	<tr>
		<td height=22>套管接箍</td>
		<td>J55</td>
		<td>φ153.67×13.5</td>
		<td>LC</td>
		<td>吨</td>
		<td ><asp:TextBox ID="TaoGuanJieGu" runat="server" CssClass="intxt1" Width="100" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false">0</asp:TextBox></td>		
		<td class="style1" ><asp:TextBox ID="TaoGuanJieGuJiHuaZhiJinDanJia" runat="server" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"
                CssClass="intxt1" Width="98%">0</asp:TextBox></td>
		<td><asp:Label ID="TaoGuanJieGuJiHuaZhiJinJine"  runat="server"  Width="140px"></asp:Label></td>
	</tr>
	<tr>
		<td height=22>套管成品接箍</td>
		<td>J55</td>
		<td>5-1/2</td>
		<td>LC</td>
		<td>个</td>
		<td><asp:TextBox ID="ChengPinJieGu" runat="server" CssClass="intxt1" Width="100" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false">0</asp:TextBox></td>		
		<td class="style1"><asp:TextBox ID="ChengPinJieGuJiHuaZhiJinDanJia" runat="server" 
                CssClass="intxt1" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"
                Width="98%" >0</asp:TextBox></td>
        <td><asp:Label ID="ChengPinJieGuJiHuaZhiJinJine"  runat="server"  Width="140px"></asp:Label></td>
	</tr>	
	<tr>
		<td height=22>原料油管</td>
		<td>N80</td>
		<td>φ73.1×5.51</td>
		<td>NU</td>
		<td>吨</td>
		<td ><asp:TextBox ID="YouGuan_N80" runat="server" CssClass="intxt1" Width="100" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false">0</asp:TextBox></td>		
		<td class="style1" ><asp:TextBox ID="YouGuanJiHuaZhiJinDanJia_N80" runat="server" CssClass="intxt1" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"
                Width="98%" >0</asp:TextBox></td>
        <td><asp:Label ID="YouGuanJiHuaZhiJinJine_N80"  runat="server"  Width="140px"></asp:Label></td>
	</tr>	
	<tr>
		<td height=22>原料套管</td>
		<td>N80</td>
		<td>φ139.7×7.72</td>
		<td>LC</td>
		<td>吨</td>
		<td ><asp:TextBox ID="TaoGuan_N80" runat="server" CssClass="intxt1" Width="100" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false">0</asp:TextBox></td>		
		<td class="style1" ><asp:TextBox ID="TaoGuanJiHuaZhiJinDanJia_N80" runat="server" CssClass="intxt1" 
                Width="98%"
                onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false">0</asp:TextBox></td>
		<td><asp:Label ID="TaoGuanJiHuaZhiJinJine_N80"   runat="server"  Width="140px"></asp:Label></td>
	</tr>
	
	<tr>
		<td height=22>油管接箍</td>
		<td>N80</td>
		<td>φ88.9×12.5</td>
		<td>NU</td>
		<td>吨</td>
		<td ><asp:TextBox ID="YouGuanJieGu_N80" runat="server" CssClass="intxt1" Width="100" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false">0</asp:TextBox></td>		
		<td class="style1" ><asp:TextBox ID="YouGuanJieGuJiHuaZhiJinDanJia_N80" runat="server" 
                CssClass="intxt1" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"
                Width="98%" >0</asp:TextBox></td>
        <td><asp:Label ID="YouGuanJieGuJiHuaZhiJinJine_N80"  runat="server"  Width="140px"></asp:Label></td>
	</tr>		
	<tr>
		<td height=22>套管接箍</td>
		<td>N80</td>
		<td>φ153.67×13.5</td>
		<td>LC</td>
		<td>吨</td>
		<td ><asp:TextBox ID="TaoGuanJieGu_N80" runat="server" CssClass="intxt1" Width="100" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false">0</asp:TextBox></td>		
		<td class="style1" ><asp:TextBox ID="TaoGuanJieGuJiHuaZhiJinDanJia_N80" runat="server" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"
                CssClass="intxt1" Width="98%">0</asp:TextBox></td>
		<td><asp:Label ID="TaoGuanJieGuJiHuaZhiJinJine_N80"  runat="server"  Width="140px"></asp:Label></td>
	</tr>		
	<tr>
		<td height=22>套管成品接箍</td>
		<td>N80</td>
		<td>5-1/2</td>
		<td>LC</td>
		<td>个</td>
		<td><asp:TextBox ID="ChengPinJieGu_N80" runat="server" CssClass="intxt1" Width="100" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false">0</asp:TextBox></td>		
		<td class="style1"><asp:TextBox ID="ChengPinJieGuJiHuaZhiJinDanJia_N80" runat="server" 
                CssClass="intxt1" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"
                Width="98%" >0</asp:TextBox></td>
        <td><asp:Label ID="ChengPinJieGuJiHuaZhiJinJine_N80"  runat="server"  Width="140px"></asp:Label></td>
	</tr>	
</table>
        

        <script>    putBillFoot();</script>

    </form>
    
    <script>
        var textboxs = document.getElementsByTagName("input");
        var i;
        for (i = 0; i < textboxs.length; i++) {
            if (textboxs[i].className == "textbox" || textboxs[i].className == "intxt1" || textboxs[i].className == "intxt2") {
                textboxs[i].onfocus = function(e) { this.select(); };
            }
        }

        document.body.onkeypress = function(e) {
            if (!e) e = window.event;
            var tag = e.srcElement;
            if (!tag) tag = e.target;
            if (tag.className.toLowerCase() != "intxt1") return;
            var i;
            if (e.keyCode == 13) {
                for (i = 0; i < textboxs.length; i++) {
                    if (tag == textboxs[i]) {
                        if (i < 13 || i < 16 || i < 19 || i < 22 || i < 25) {                        
                            textboxs[i + 1].focus();
                            return false;
                        }
                        if (i < 14 || i < 17 || i < 20 || i < 23 || i < 26) {
                            textboxs[i + 3].focus();
                            return false;
                        }
                    }
                }
            }
        };
       
    </script>
    

</body>
</html>
